package com.yunji.coupon.dao;

import com.yunji.common.base.IBaseDao;
import com.yunji.coupon.bo.CouponRunningTmplBO;
import com.yunji.coupon.doamin.CouponTmplDO;
import com.yunji.coupon.dto.CouponTmplPageDTO;

import java.util.List;
import java.util.Set;

/**
 * @author : peter-zhu
 * @date : 2024/10/19 17:07
 * @description : TODO
 **/
public interface ICouponTmplDao extends IBaseDao<CouponTmplDO> {


    boolean receiveCoupon(Long id);

    boolean isReceive(Long id);

    List<CouponTmplDO> runningTmplList(CouponRunningTmplBO bo);

    List<CouponTmplDO> tmplPageList(CouponTmplPageDTO pageParam);

    Set<String> likeNames(String name);

    boolean modifyReceiveTime(Long id, Integer action);

    boolean modifyRecall(Long id);

    boolean modifyUsedCount(Long couponTmplId, Integer count);

    void testJoin();

    List<CouponTmplDO> tmplList(CouponTmplPageDTO dto);
}
